package com.itheima.dubbo.api;

import com.itheima.model.mongo.Movement;
import com.itheima.model.vo.PageResult;
import org.bson.types.ObjectId;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public interface MovementApi {
     PageResult findByUserId(Long userId, Integer page, Integer pagesize);

    void publish(Movement movement);

    List<Movement> findFriendMovements(Long friendId, Integer page, Integer pagesize);

    List<Movement> randomMovements(Integer pagesize);

    List<Movement> findMovementsBypids(List<Long> pids);

    Movement findById(String movementId);


    Map<String, String> pass(ArrayList<Long> objectIds);

    Map<String, String> reject(ArrayList<Long> objectIds);

    Map<String, String> revocation(ArrayList<Long> objectIds);

    Long count(ArrayList<Integer> ids);

    List<Movement> getmassage(int page, int pagesize, String sortProp, String sortOrder, String id, Long sd, Long ed, Integer state,Long uid);

    List<Movement> getlist(int page, int pagesize, String sortProp, String sortOrderInteger, Long uid);
}
